<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>时钟特效</title>
	<script type="text/javascript"> 	
			function disptime(){	
				var today=new Date();	
				var yyyy=today.getFullYear(); 	
				var MM=today.getMonth(); 	
				var dd=today.getDate();	
				var hh=today.getHours();			
				var day=today.getDay(); 
				var mm=today.getMinutes();
				var ss=today.getSeconds(); 								
				document.getElementById("p").innerHTML="你好，欢迎来贵美！"+"<br/>"+yyyy+"年"+(MM+1)+"月"+dd+"日"+"<br/>"+hh+"时"+mm+"分"+ss+"秒<br/>";
			}
			var myTime=setInterval("disptime()",1000);
		</script> 	
	</head>	
	<body>
		<div id="p">
			
		</div>
	</body>
</html>
